%%check if a 1-d cell contains a string. If yes, return the index of the string
function y = cellfind(c,str)
len = size(c(:),1);
y = 0;
for i=1:len
    if strcmp(c{i},str)
        y =i;
        return
    end
end
end
